package com.framework.Module.flow.flowset;

import com.framework.Table.Table;
import com.framerock.db.DBConn;
import com.framerock.baselib.Rock;

public class Tableflowset extends  Table{
  
    protected void initTable() {
        this.tablename   = "flowset";
        this.tablenamesm = "模块列表";

        //添加的模块列表里
        this.flowsetMap  = Rock.getMap(new String[]{
             "type", "系统",
             "sort", "901",
             "isxt", "1",
             "sortdir", "sort"
        });

        this.addfields("imgurl", "varchar(200)", "", "图标", new String[]{
                "isss","0",
                "fieldstype","uploadimg"
        });

        this.addfields("name", "varchar(100)", "", "名称", new String[]{
        		"isbt","1",
        		"isss","1",
        });
        this.addfields("num", "varchar(50)", "", "模块编号@@字母数字组合不能特殊符合", new String[]{
                "isbt","1",
                "attr","onlyen",
                "isonly", "1",
                "isss","1"
        });
        this.addfields("type", "varchar(50)", "", "分类", new String[]{
                "isbt","1",
        		"isss","1"
        });
        this.addfields("table", "varchar(50)", "", "主表@@字母数字组合不能特殊符合", new String[]{
                "isbt","1",
                "isss","1",
                "attr","onlyen",
                "zdsm","如果不存在会自动创建主表"
        });

        this.addfields("where", "varchar(500)", "", "相应条件@@共用主表必须设置", new String[]{"islb","0"});
        this.addfields("summary", "varchar(500)", "", "摘要", new String[]{"islb","0"});
        this.addfields("summarx", "varchar(500)", "", "应用摘要", new String[]{"islb","0"});



        this.addfields("sericnum", "varchar(50)", "", "单号规则@@有流程就需要设置如：XH-Ymd-", new String[]{"islb","0"});
        this.addfields("status", "tinyint(1)", "1", "状态@0|停用|gray,1|启用|green@启用模块", new String[]{
        		"isss","1",
        		"ispx","1",
        		"fieldstype", "checkbox"
        });
        this.addfields("isxt", "tinyint(1)", "0", "级别@0|默认,1|系统级,2|单位级", new String[]{
                "zdsm","系统级别模块管理员可使用，单位级别必须选择一个单位才能用",
        });
        this.addfields("sort", "int(11)", "0", "排序号", new String[]{
                "ispx","1",
                "iseditlx","2",
        });
        this.addfields("istj", "tinyint(1)", "0", "单位加@0|不可添加|gray,1|可添加|green@单位可添加此模块", new String[]{
                "isss","0",
                "ispx","1",
                "fieldstype", "checkbox"
        });

        this.addfields("islc", "tinyint(1)", "0", "可流程@0|不可使用|gray,1|可开启流程|green@单位下可开启流程", new String[]{
                "isss","0",
                "ispx","1",
                "fieldstype", "checkbox"
        });

        this.addfields("sortdir", "varchar(100)", "", "列表页排序@@列表页排序如id desc", new String[]{"islb","0"});
        this.addfields("explain", "varchar(500)", "", "模块说明@@显示在录入页", new String[]{
                "islb","0",
                "fieldstype","textarea"
        });

        this.addfields("id", "int(11)", "0", "ID");
        this.addfields("num", "UNIQUE KEY", "`num`", "模块编号主键");
    }


}
